import Http from '../http';

export async function iccardPageApi(queryParams : Pagination) {
    let res = await Http.get('iccard/page', queryParams)
    return res.data ? res.data : []
}

export function rechargeApi(amount:number, cardId:number) {
    return Http.post('iccard/recharge', {amount, cardId})
}

export async function rechargeLogApi(queryParams : {[key : string] : any}) {
    let { data } = await Http.get('iccard/rechargeLog', queryParams)
    return data
}